package org.springblade.humanResource.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.springblade.humanResource.entity.Project;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

public interface ProjectService extends IService<Project> {
	/**
	 * 获取项目相关信息
	 *
	 * @param map
	 * @return
	 */
	List<Map<String, Object>> getHumanResourceList(Map<String, Object> map);

	/**
	 * 获取项目相关信息总条数
	 *
	 * @param map
	 * @return
	 */
	Integer getHumanResourceCount(Map<String, Object> map);

	/**
	 * 获取任务人员相关信息
	 *
	 * @param map
	 * @return
	 */
	List<Map<String, Object>> getTaskHumanList(Map<String, Object> map);

	/**
	 * 获取部门信息
	 *
	 * @param
	 * @return
	 */
	List<Map<String, Object>> getDeptList();

	/**
	 * 获取柱状图Y轴数据
	 *
	 * @param month
	 * @param deptId
	 * @return
	 */
	List<Map<String, Object>> getBarYData(List<String> months, List<String> deptNames);

	/**
	 * 获取饼图轴数据
	 *
	 * @param map
	 * @return
	 */
	List<Map<String, Object>> getPieData(Map<String, Object> map);

	/**
	 * 获取月度使用排名
	 *
	 * @param map
	 * @return
	 */
	List<Map<String, Object>> getMonthUserHourRank(Map<String, Object> map);

	/**
	 * 人员空闲情况
	 *
	 * @param map
	 * @return
	 */
	List<Map<String, Object>> getUserFreeRank(Map<String, Object> map);
}
